 <!-- 用户列表页模板 -->
 <!DOCTYPE html>
 <html lang="en">
 <head>
   <meta charset="UTF-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title><%=title%></title>
   <style>
     table td{padding:10px;border:1px solid #ccc;}
     .user__bar{
        display: flex;
     }
     .add__btn{
       margin-left: 200px;
     }
   </style>
 </head>
 <body>
   <div class="user__bar">
     <div cass="text">用户管理</div>
     <div class="add__btn"><button><a href="/userAddPage">新增</a></button></div>
     <div class="add__btn"><button><a href="/upload">文件上传</a></button></div>
  </div>
   <div>
    <table border="1" cellspacing="0" cellpadding="0">
      <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>密码</th>
        <th>操作</th>
      </tr>
      <%for(var i=0;i<data.length;i++) { %> 
        <tr>
          <td><%=data[i].id%></td>
          <td><%=data[i].name%></td>
          <td><%=data[i].age%></td>
          <td><%=data[i].password%></td>
          <td>
            <button type="button"><a href="/editUsers/<%=data[i].id%>">编辑</a></button>&nbsp;
            <button type="button"><a href="/deleteUsers/<%=data[i].id%>">删除</a></button>
          </td>
        </tr>    
      <%}%> 
    </table>
   </div>
 </body>
 </html>